package com.linjacy.container.product.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linjacy.common.utils.PageUtils;
import com.linjacy.common.utils.Query;

import com.linjacy.container.product.dao.MerchandiseDao;
import com.linjacy.container.product.entity.MerchandiseEntity;
import com.linjacy.container.product.service.MerchandiseService;


@Service("merchandiseService")
public class MerchandiseServiceImpl extends ServiceImpl<MerchandiseDao, MerchandiseEntity> implements MerchandiseService {
    @Autowired
    MerchandiseService merchandiseService;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MerchandiseEntity> page = this.page(
                new Query<MerchandiseEntity>().getPage(params),
                null
        );
        System.out.println(page.getPages());
        return new PageUtils(page);
    }

    @Override
    public void deleteById(Long mid) {
         baseMapper.deleteById(mid);
    }




}